from base.newbase import NewBase
from selenium.webdriver.common.by import By
from time import sleep

class NewPage(NewBase):
    guanzhutag=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout/android.widget.ImageView')

    sousuokuang=(By.ID,'com.kongfz.app:id/ll_search')

    shurukuang='new Uiselector().resourceld("com.kongfz.app:id/et_search")'

    sousuoanniu=(By.XPATH,'//android.widget,TestView[@resoure-id=com.kongfz.app:id/tv_search]')

    dy1=(By.ID,'com.kongfz.app:id/tv_search')

    dy2=(By.ID,'com.kongfz.app:id/ll_search')

    dy3=(By.ID,'com.kongfz.app:id/ll_search')

    def guanzhuyewu(self,content):
        self.loc_ele(self.guanzhutag).click()
        sleep(2)

        self.loc_ele(self.sousuokuang).click()
        sleep(2)

        self.loc_ui_ele(self.shurukuang).click()
        sleep(2)